
#ifndef _SIMULATION_H
#define _SIMULATION_H

#include <stdlib.h>
#include <msgQLib.h>
#include <taskLib.h>
#include <sysLib.h>

#include "globals.h"
#include "types.h"
#include "primitives.h"


#define PROBA_PIECENONPRESENTE 0


#define PROBA_CARTONNONPRESENT 1


#define PROBA_IMPRIMANTEPANNE 2


#define PROBA_PALETTENONPRESENTE 1


#define PERIODE 1


void amenerPiece();


void amenerCarton();


void imprimerEtiquette(MsgCarton * carton);


void apposerFilmPlastique();


void transfererTerminalMobile(MsgOrdreExpe * ordreExpe);


void expedierCommande();


void retirerCartonTapis();


int testPiecePresente();


int testCartonPresent();


int testImprimanteOk();


int testPalettePresente();


int lireDimensionPiece();


int randBornes(int a, int b);

#endif

